package  
{
	import flash.display.Sprite;
	import flash.text.TextField;
	
	/**
	 * ...
	 * @author hbb
	 */
	public class StringTest extends Sprite 
	{
		
		public function StringTest() 
		{
			htmlEntitiesCharacters();
		}
		
		public function htmlEntitiesCharacters():void
		{
			var strEntity:String = '&#60;rv.2.thumbnailUrl=http%3A%2F%2Fi1.ytimg.com%2Fvi%2FhQTtMXZs2LA%2Fdefault.jpg&rv.7.length_seconds=120&rv.0.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcJ-J91SwP8w&rv.0.view_count=160891&rv.2.title=A+Public+Service+Announcement+not+approved+by+AJWS&rv.4.rating=4.93345718629&rv.3.view_count=2220&iv_close_button=0&rv.0.length_seconds=339&rv.4.thumbnailUrl=http%3A%2F%2Fi4.ytimg.com%2Fvi%2FCD7eagLl5c4%2Fdefault.jpg&fmt_url_map=35%7Chttp%3A%2F%2Fv6.lscache6.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPRVVPVF9FSkNOOV9NSVhJ%26algorithm%3Dthrottle-factor%26itag%3D35%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3DC81784E01E25FA02596DF7C9DBE6261FE6878C3F.05F18FA4E3147F90241FA4161FE3AC2ECEBC4E32%26expire%3D1300546800%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D748e75afc26848ee%2C34%7Chttp%3A%2F%2Fv22.lscache5.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPRVVPVF9FSkNOOV9NSVhJ%26algorithm%3Dthrottle-factor%26itag%3D34%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D0328BFECAF9A7B74768D6503F8318F450FA556BB.CB01B28AFCD47F0A5E4474726E04CD5D7CC64F65%26expire%3D1300546800%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D748e75afc26848ee%2C18%7Chttp%3A%2F%2Fv12.lscache3.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPRVVPVF9FSkNOOV9NSVhJ%26algorithm%3Dthrottle-factor%26itag%3D18%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D20D1631EB44D7F81183F7EC4EF9221E8B87FB584.4C339E59B296DC110CCD67B6BAAE1E38B3C42894%26expire%3D1300546800%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D748e75afc26848ee%2C5%7Chttp%3A%2F%2Fv21.lscache7.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPRVVPVF9FSkNOOV9NSVhJ%26algorithm%3Dthrottle-factor%26itag%3D5%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D93C2A0DB9BB0B1E61AE40014E7C0C4D930123571.6714723BC94CD0D80C60F61495FA0319A64282AC%26expire%3D1300546800%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D748e75afc26848ee&allow_ratings=1&keywords=Joe+Sponzo%2CTrudie+Styler%2CSting%2Cwine%2Cfood%2Cmusic%2CPairings%2CTuscany%2CPairings+Tuscany%2CSister+Moon%2CAmerican+Express%2CAMEX&rv.1.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DW2OCoYf05VE&track_embed=1&iv3_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fiv3_module-vflz5pFL8.swf&fmt_list=35%2F854x480%2F9%2F0%2F115%2C34%2F640x360%2F9%2F0%2F115%2C18%2F640x360%2F9%2F0%2F115%2C5%2F320x240%2F7%2F0%2F0&rv.7.id=uPpMWaSPt-s&iv_storage_server=http%3A%2F%2Fwww.google.com%2Freviews%2Fy%2F&title=A+Night+To+Remember+In+Tuscany+-+Presented+by+AMEX&rv.7.thumbnailUrl=http%3A%2F%2Fi2.ytimg.com%2Fvi%2FuPpMWaSPt-s%2Fdefault.jpg&rv.0.rating=4.81519324745&rv.6.author=girleffect&rv.5.id=SKL254Y_jtc&iv_load_policy=1&rv.0.id=cJ-J91SwP8w&rv.7.view_count=454056&rv.5.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSKL254Y_jtc&rv.6.length_seconds=185&timestamp=1300524603&rv.0.author=postcarboninstitute&plid=AASe0fr-iptE4JnP&rv.2.author=ajwstv&rv.6.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1e8xgF0JtVg&watch_ajax_token=lfBeM_4_HP0kAiIJ2oX25ZkelGB8MTMwMDYxMTAwMw%3D%3D&fmt_map=35%2F854x480%2F9%2F0%2F115%2C34%2F640x360%2F9%2F0%2F115%2C18%2F640x360%2F9%2F0%2F115%2C5%2F320x240%2F7%2F0%2F0&iv_logging_level=3&rv.2.length_seconds=306&endscreen_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fendscreen-vflEq_X2o.swf&ftoken=JyqtRLL6Q8j-I77gixTu6ZNAoL58MTMwMDYxMTAwMw%3D%3D&rv.0.thumbnailUrl=http%3A%2F%2Fi4.ytimg.com%2Fvi%2FcJ-J91SwP8w%2Fdefault.jpg&rv.5.length_seconds=123&rv.7.author=letscolour&avg_rating=5.0&leanback_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fleanback_module-vflF_5_0q.swf&rv.1.length_seconds=124&rv.3.id=Qdpd3roZjYw&token=vjVQa1PpcFN4UWlLdIu8f8MOZKPeqhv2RjoEpDOqYFk%3D&thumbnail_url=http%3A%2F%2Fi1.ytimg.com%2Fvi%2FdI51r8JoSO4%2Fdefault.jpg&rv.5.view_count=9598470&rv.6.id=1e8xgF0JtVg&rv.6.view_count=614921&rv.3.author=Watershedmg&rv.4.id=CD7eagLl5c4&rv.3.thumbnailUrl=http%3A%2F%2Fi2.ytimg.com%2Fvi%2FQdpd3roZjYw%2Fdefault.jpg&rv.1.view_count=2100&logwatch=1&rv.4.author=nokia&creator=AmericanExpress&allow_embed=1&fmt_stream_map=35%7Chttp%3A%2F%2Fv6.lscache6.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPRVVPVF9FSkNOOV9NSVhJ%26algorithm%3Dthrottle-factor%26itag%3D35%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3DC81784E01E25FA02596DF7C9DBE6261FE6878C3F.05F18FA4E3147F90241FA4161FE3AC2ECEBC4E32%26expire%3D1300546800%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D748e75afc26848ee%7C%7Ctc.v6.cache6.c.youtube.com%2C34%7Chttp%3A%2F%2Fv22.lscache5.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPRVVPVF9FSkNOOV9NSVhJ%26algorithm%3Dthrottle-factor%26itag%3D34%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D0328BFECAF9A7B74768D6503F8318F450FA556BB.CB01B28AFCD47F0A5E4474726E04CD5D7CC64F65%26expire%3D1300546800%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D748e75afc26848ee%7C%7Ctc.v22.cache5.c.youtube.com%2C18%7Chttp%3A%2F%2Fv12.lscache3.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPRVVPVF9FSkNOOV9NSVhJ%26algorithm%3Dthrottle-factor%26itag%3D18%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D20D1631EB44D7F81183F7EC4EF9221E8B87FB584.4C339E59B296DC110CCD67B6BAAE1E38B3C42894%26expire%3D1300546800%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D748e75afc26848ee%7C%7Ctc.v12.cache3.c.youtube.com%2C5%7Chttp%3A%2F%2Fv21.lscache7.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPRVVPVF9FSkNOOV9NSVhJ%26algorithm%3Dthrottle-factor%26itag%3D5%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D93C2A0DB9BB0B1E61AE40014E7C0C4D930123571.6714723BC94CD0D80C60F61495FA0319A64282AC%26expire%3D1300546800%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D748e75afc26848ee%7C%7Ctc.v21.cache7.c.youtube.com&rv.2.rating=4.85317177477&rv.7.title=Dulux+Walls+Ad+-+Director%27s+Cut&iv_enabled_features=TS&user_gender=m&rv.1.id=W2OCoYf05VE&rv.6.title=The+Girl+Effect%3A+The+Clock+is+Ticking&rv.4.length_seconds=97&author=AmericanExpress&muted=0&rv.6.thumbnailUrl=http%3A%2F%2Fi2.ytimg.com%2Fvi%2F1e8xgF0JtVg%2Fdefault.jpg&rv.3.title=It%27s+in+Your+Hands&length_seconds=307&rv.2.id=hQTtMXZs2LA&user_age=30&has_cc=False&iv_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fiv_module-vflpZBDIQ.swf&rv.5.rating=4.81068902935&rv.4.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCD7eagLl5c4&status=ok&rv.1.author=rmhcaustin&rv.1.rating=4.29032258065&rv.4.title=Dot.+The+world%27s+smallest+stop-motion+animation+character+shot+on+a+Nokia+N8&rv.3.rating=4.87360594796&watermark=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswf%2Flogo-vfl_bP6ud.swf%2Chttp%3A%2F%2Fs.ytimg.com%2Fyt%2Fswf%2Fhdlogo-vfloR6wva.swf&rv.0.title=300+Years+of+FOSSIL+FUELS+in+300+Seconds&rv.7.rating=4.96217105263&rv.3.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQdpd3roZjYw&rv.2.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhQTtMXZs2LA&rv.5.thumbnailUrl=http%3A%2F%2Fi4.ytimg.com%2Fvi%2FSKL254Y_jtc%2Fdefault.jpg&rv.7.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuPpMWaSPt-s&rv.2.view_count=663094&rv.4.view_count=2352163&video_id=dI51r8JoSO4&rv.5.title=Chrysler+Eminem+Super+Bowl+Commercial+-+Imported+From+Detroit&rv.6.rating=4.67821116342&vq=auto&rv.1.title=Meet+the+Digits&iv_allow_external_links=1&rv.1.thumbnailUrl=http%3A%2F%2Fi4.ytimg.com%2Fvi%2FW2OCoYf05VE%2Fdefault.jpg&rv.3.length_seconds=155&rv.5.author=chrysler';
			var txt:TextField = new TextField;
			txt.htmlText = decodeURIComponent(strEntity);
			var strCharacter:String = txt.text;
			
			trace("= strEntity =");
			trace(decodeURIComponent(strEntity));
			trace("= strCharacter =");
			trace(strCharacter);
		}
		
	}

}